
import java.util.Scanner;
//biji tot
public class P1 {
	int x;
	int y;
        int quadrant=0;

	public static void main(String [] args)  {
		Scanner s = new Scanner(System.in);
	System.out.println("Enter value of x: ");
	int x = s.nextInt ();

	System.out.println("Enter value of y: ");
	int y = s.nextInt();

	if (x>0 && y>0)
        {
            System.out.println("Quadrant 1");
            }
        if (x>0 && y <0){
            System.out.println("Quadrant 2");
        }
        if (x<0 && y <0){
            System.out.println("Quadrant 3");
        }
        if (x<0 && y >0){
            System.out.println("Quadrant 4");
        }
	}
}